#include <atmel_start.h>
#include "mstimer.h"
int main(void)
{
    struct mstimer Blink_Timer;
	/* Initializes MCU, drivers and middleware */
	atmel_start_init();
    mstimer_init();
	/* Replace with your application code */
        led_init();
	    bacnet_init();
        initial_lcd();
        clear_screen();
	    mstimer_set(&Blink_Timer, 125);
       
	    for (;;) {
    	    if (mstimer_expired(&Blink_Timer)) {
        	    mstimer_reset(&Blink_Timer);
    	    }
            led_task();
    	    bacnet_task();
	    }
}
